package com.baidu.service.impl;

import com.baidu.common.bean.GoodsType;
import com.baidu.common.exception.WebException;
import com.baidu.dao.TypeDao;
import com.baidu.dao.impl.TypeDaoImpl;
import com.baidu.service.TypeService;

import java.util.List;

/**
 * @Author: BSS
 * @create: 2020/8/22/16:42
 */
public class TypeServiceImpl implements TypeService {
    private TypeDao typeDao = new TypeDaoImpl();

    public TypeServiceImpl() throws WebException {
    }

    @Override
    public List<GoodsType> queryGoodsTypeList() throws WebException {
        return typeDao.queryGoodsTypeList();
    }

    @Override
    public GoodsType get(Integer id) {
        return null;
    }

    @Override
    public int update(GoodsType type) {
        return 0;
    }

    @Override
    public int delete(Integer id) {
        return 0;
    }

    @Override
    public int add(GoodsType type) {
        return 0;
    }
}
